package com.huaxia.day8.t2;

public class CalculatorImpl implements Calculator {
    // 可变长参数
    @Override
    public int add(int... vals) {
        int res = 0;
        for (int i=0;i<vals.length;i++){
            res+= vals[i];
        }
        return res;
    }

    public int add1(int values[]){

        return 0;
    }

    @Override
    public int sub(int a, int b) {
        return 0;
    }

    @Override
    public long multiplication(int a, int b) {
        return 0;
    }

    @Override
    public double division(int a, int b) {
        return 0;
    }
}
